package cn.itsource.basic.query;

import lombok.Data;

/*封装查询类的基类*/
@Data
public class BaseQuery {

    private String keyword;

    /*每页条数*/
    private Integer pageSize = 5;
    /*当前页数*/
    private Integer currentPage = 1;

    /*计算起始行数*/
    public Integer getBegin(){
        return (currentPage-1)*pageSize;
    }

}
